package com.example.design.adapter.usbtypec;

/**
 * @Description 电脑类
 * @ClassName Computer
 * @Author Administrator
 * @Date 2020/5/13 12:28
 * @Version 1.0.0
 */
public class Computer {

    private IUsb usbDevice;

    public void connect(IUsb usbDevice){
        this.usbDevice = usbDevice;
    }

    public void showInfo(){
        System.out.println(this.usbDevice.getInfo());
    }
}
